import 'package:gameplay_flutter/lib_im/index.dart';
import 'package:json_annotation/json_annotation.dart';

import '../kh_chat_room_seat_on_model.dart';
import '../socket/req_content.dart';
part 'message_data.g.dart';

@JsonSerializable()
class MessageData {
  int? seq;
  int? reqId;

  /// 文本消息
  String? content;

  /// ReqContent 消息
  ReqContent? reqContent;

  /// 赠送的礼物数量
  int? count;

  /// 赠送的礼物
  ImGitfModel? giftModel;

  /// 麦位信息
  KHChatRoomSeatOnModel? seatOnModel;

  MessageData();
  factory MessageData.fromJson(Map<String, dynamic> json) =>
      _$MessageDataFromJson(json);
  Map<String, dynamic> toJson() => _$MessageDataToJson(this);
}
